package by.dkusch.aircompany.services.csv.countrycsv;

import java.io.Serializable;

import org.apache.camel.dataformat.bindy.annotation.CsvRecord;
import org.apache.camel.dataformat.bindy.annotation.DataField;

@CsvRecord(separator = ",")
public class CountryCSV implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@DataField(pos = 1)
	private String id;

	@DataField(pos = 2)
	private String code;

	@DataField(pos = 3)
	private String name;

	@DataField(pos = 4)
	private String continentCnt;

	@DataField(pos = 5)
	private String wikipedia_link;

	@DataField(pos = 6)
	private String description;

	@DataField(pos = 7)
	private String add;

	@DataField(pos = 8)
	private String add1;

	@DataField(pos = 9)
	private String add2;

	public String getContinentCnt() {
		return continentCnt;
	}

	public void setContinentCnt(String continentCnt) {
		this.continentCnt = continentCnt;
	}

	public String getAdd1() {
		return add1;
	}

	public void setAdd1(String add1) {
		this.add1 = add1;
	}

	public String getAdd() {
		return add;
	}

	public void setAdd(String add) {
		this.add = add;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getWikipedia_link() {
		return wikipedia_link;
	}

	public void setWikipedia_link(String wikipedia_link) {
		this.wikipedia_link = wikipedia_link;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContinent() {
		return continentCnt;
	}

	public void setContinent(String continent) {
		this.continentCnt = continent;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("CountryCSV [id=");
		builder.append(id);
		builder.append(", code=");
		builder.append(code);
		builder.append(", name=");
		builder.append(name);
		builder.append(", continent=");
		builder.append(continentCnt);
		builder.append(", wikipedia_link=");
		builder.append(wikipedia_link);
		builder.append(", description=");
		builder.append(description);
		builder.append(", add=");
		builder.append(add);
		builder.append("]");
		return builder.toString();
	}

}
